//
//  ZHAbility.h
//  Base
//
//  Created by zhusanbao on 2021/1/11.
//

#import <Foundation/Foundation.h>

typedef enum : NSInteger {
    ZHAuthorityOK,
    ZHAuthorityDeny,
    ZHAuthorityUnkonw
} ZHAuthorityStatus;
NS_ASSUME_NONNULL_BEGIN

@interface ZHAuthority : NSObject

//相机权限
+ (void)cameraCheck:(void (^) (ZHAuthorityStatus status, NSString *_Nullable desc))callback;

/// 相册权限检测
/// @param callback 回调
+ (void)photoCheck:(void (^) (ZHAuthorityStatus status, NSString *_Nullable desc))callback settingsAlertInVc:(nullable UIViewController *)vc;

/// 打开设置
/// @param complete 完成回调
+ (void)openSysSettingsComplete:(void(^_Nullable)(BOOL success))complete;

@end

NS_ASSUME_NONNULL_END
